perimeter of a composite figure